<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {block name="title"}<title>我的</title>{/block}
    <link rel="stylesheet" href="/html/css/style2.css">
    <link rel="stylesheet" href="/html/css/style.css">
    <link rel="stylesheet" href="/html/css/amazeui.min.css">


    <script src="/html/js/jquery-1.10.2.min.js"></script>
    <script src="/html/js/amazeui.min.js"></script>
    <script>
        var iScale = 1;
        iScale = iScale / window.devicePixelRatio;
        document.write('<meta name="viewport" content="width=device-width,user-scalable=no,' +
            'initial-scale=' + iScale + ',minimum-scale=' + iScale + ',maximum-scale=' + iScale + '">');
    </script>
</head>

<body>
{block name="banner"}
<div class="am-slider am-slider-default" data-am-flexslider id="demo-slider-0" style="position: relative;">
    <ul class="am-slides">
        {foreach name="$lunbo" item="v"}
        <li ><img src="{$v.img_url}" alt=""></li>
        {/foreach}
    </ul>
    <div class="cate-search">
        <form action="{:url('common/search')}" method="get">
            <input type="text" name="keyword" class="cate-input" placeholder="书名/作者/关键词" />
            <input type="button" class="cate-btn" onclick="javascript:form.submit();" />
        </form>

    </div>
</div>
{/block}
<!--头部结束-->
{block name="content"}{/block}

</body>
<script>
    $(function(){
        //动态更新fontsize
        var width = $(document).width();
        var size = width/16;
        console.log(size);
        $('html').css('fontSize',size+'px');
        //搜索功能
    })
</script>
{block name="js"}{/block}
</html>